package auction.chapter08;

import java.util.HashSet;
import java.util.Set;

public class UserCustomizeLoadSQL{
	private Long id;
	private String name;
	private String address;
	private Set<ItemCustomizeLoadSQL> items=new HashSet<ItemCustomizeLoadSQL>();
	
	public UserCustomizeLoadSQL(){
	}
	
	public UserCustomizeLoadSQL(String s){
		name=s;
	}
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public void addItem(ItemCustomizeLoadSQL i){
		this.items.add(i);
		i.setUser(this);
	}
	
	public String getName(){
		return name;
	}
	public void setName(String i){
		name=i;
	}

	public Set<ItemCustomizeLoadSQL> getItems() {
		return items;
	}

	public void setItems(Set<ItemCustomizeLoadSQL> items) {
		this.items = items;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
}